package com.personal.portal.admin.entity;

import com.mybatisflex.annotation.Table;
import com.personal.portal.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 字典值表实体类
 * 
 * @author zhanghui
 * @version 1.0.0
 * @since 2025-11-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("tp_dict_items")
public class DictItem extends BaseEntity {
    
    /**
     * 分类ID
     */
    private Long categoryId;
    
    /**
     * 字典名称
     */
    private String name;
    
    /**
     * 字典代码
     */
    private String code;
    
    /**
     * 字典值
     */
    private String value;
    
    /**
     * 字典描述
     */
    private String description;
    
    /**
     * 显示颜色，支持Element Plus的tag类型或自定义颜色值
     * 如：primary, success, warning, danger, info 或 #409eff 等
     */
    private String color;
    
    /**
     * 排序权重
     */
    private Integer sortOrder;
}
